<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-code" data-rule="required" class="form-control" name="row[code]" type="text" value="{$row.code}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('配图')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-thumb" data-rule="required" class="form-control" size="50" name="row[thumb]" type="text" value="{$row.thumb}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-thumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-thumb"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-thumb" class="btn btn-primary fachoose" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-thumb"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('banner')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-banner" data-rule="required" class="form-control" size="50" name="row[banner]" type="text" value="{$row.banner}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-banner" class="btn btn-danger plupload" data-input-id="c-banner" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-banner"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-banner" class="btn btn-primary fachoose" data-input-id="c-banner" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-banner"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-banner"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('简介')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-description" data-rule="required" class="form-control" name="row[description]" type="text" value="{$row.description}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('小标签内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tag" data-rule="" class="form-control" name="row[tag]" type="text" value="{$row.tag}">
        </div>
    </div>

    <div class="form-group price-box">
        <label class="control-label col-xs-12 col-sm-2">{:__('基础价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[base_price]">
                <dd>
                    <ins>渠道用户类型</ins>
                    <ins>价格(元)</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[base_price]" class="form-control hide" cols="30" rows="5">{$base_price}</textarea>
            </dl>
        </div>
    </div>

    <?php if($row['code']=='escort_overtime'){ ?>
    <div class="form-group price-box overtime-box">
        <label class="control-label col-xs-12 col-sm-2">{:__('每小时价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[hour_price]">
                <dd>
                    <ins>渠道用户类型</ins>
                    <ins>价格(元)</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[hour_price]" class="form-control hide" cols="30" rows="5">{$hour_price}</textarea>
            </dl>
        </div>
    </div>
    <?php } if(in_array($row['code'],['ward','special_ward','surgery_ward'])){ ?>
    <div class="form-group price-box ward-box">
        <label class="control-label col-xs-12 col-sm-2">{:__('可自理每天价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[day_price1]">
                <dd>
                    <ins>渠道用户类型</ins>
                    <ins>价格(元)</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[day_price1]" class="form-control hide" cols="30" rows="5">{$day_price1}</textarea>
            </dl>
        </div>
    </div>
    <div class="form-group price-box ward-box">
        <label class="control-label col-xs-12 col-sm-2">{:__('半自理每天价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[day_price2]">
                <dd>
                    <ins>渠道用户类型</ins>
                    <ins>价格(元)</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[day_price2]" class="form-control hide" cols="30" rows="5">{$day_price2}</textarea>
            </dl>
        </div>
    </div>
    <div class="form-group price-box ward-box">
        <label class="control-label col-xs-12 col-sm-2">{:__('不可自理每天价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" data-name="row[day_price3]">
                <dd>
                    <ins>渠道用户类型</ins>
                    <ins>价格(元)</ins>
                </dd>
                <dd>
                    <a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> 追加</a>
                </dd>
                <textarea name="row[day_price3]" class="form-control hide" cols="30" rows="5">{$day_price3}</textarea>
            </dl>
        </div>
    </div>
    <?php } ?>

    <style>
        .price-box .btn-remove,.price-box .btn-dragsort,.price-box .btn-append{display: none;}
    </style>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('服务内容')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" data-rule="required" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('服务须知')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-notice" data-rule="required" class="form-notice editor" rows="5" name="row[notice]" cols="50">{$row.notice}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('下单页注意事项')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-order_notice" data-rule="required" class="form-order_notice editor" rows="5" name="row[order_notice]" cols="50">{$row.order_notice}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>